module.exports = {
  plugins: {
    autoprefixer: {}
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:10081',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/mock'
        }
      }
    }
  }
  // devServer: {
  //   before: require('./src/components/mock/index.js')// 引入mock/index.js
  // }
  // devServer:{
  //   before:require("./src/components/mock/index")
  // }
}
